package com.cy.service;

import com.cy.dao.ChangeDao;
import com.cy.dao.ChangeDaoImpl;

public class ChangeServiceImpl implements ChangeService {

	ChangeDao changeDao = new ChangeDaoImpl();

	@Override
	public int resetPwd(int id) {
		return changeDao.resetPwd(id);
	}

	@Override
	public int delete(int id, int state) {
		return changeDao.delete(id, state);
	}

	@Override
	public int change(int id, int state) {
		return changeDao.change(id, state);
	}

	@Override
	public int buy(int userid, int gameid) {
		return changeDao.buy(userid, gameid);
	}

	@Override
	public int changeusr(String username, int userid) {
		return changeDao.changeusr(username, userid);
	}

	@Override
	public int changepwd(String newpwd, int userid) {
		return changeDao.changepwd(newpwd, userid);
	}

}
